import request from '@/utils/request';

export function fetchInvList(drugId, page, limit) {
    return request({
        url: '/inv/list',
        method: 'get',
        params: {
            drugId: drugId,
            page: page,
            limit: limit
        }
    });
}

export function inAndOutInv(token, inv) {
    return request({
        url: '/inv/inAndOutInv',
        method: 'post',
        data: inv,
        params: {
            token: token
        }
    });
}
